package com.jumi.microservice.controller.usercash.admin;

import com.jumi.microservice.common.page.TableDataInfo;
import com.jumi.microservice.dto.userWallet.CapitalDetailsRequest;
import com.jumi.microservice.dto.userWallet.CapitalDetailsResponse;
import com.jumi.microservice.service.usercash.admin.AdminCapitalDetailsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author wangjingdao
 */
@RestController
@Api(tags = {"资金明细"})
@RequestMapping("admin")
public class AdminCapitalDetailsController {
    @Resource
    AdminCapitalDetailsService capitalDetailsService;

    @PostMapping("/getCapitalList")
    @ApiOperation("资金明细")
    TableDataInfo<CapitalDetailsResponse> getCapitalList(CapitalDetailsRequest request) {
        return capitalDetailsService.getCapitalList(request);
    }


}
